<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网点修改</title>
#include("../jscss.html")
<script type="text/javascript">
	$(function(){
		$('#submit').click(function(){
			 $('#ff').form('submit',
				 {
				 url:'insert',
				 onSubmit: function(){
					var isValid = $(this).form('validate');
					if (!isValid){
						return false;
					}else{
						$('#ff').submit();
						return false
					}
				}
			 });
		});
	});
	$(function(){
		$('#back').click(function(){
			window.location.replace('list');
		});
	});
	$(function(){
		$('#superior').combobox({
    	url:'superNetworkList',
    	valueField:'id',
    	textField:'network'
});
		$("#superior").combobox("select",#(networkinfo.superiorID??0));
	})
</script>
</head>
<body>
        <div id="f-container">
		<h2>网点修改</h2>
        <form id="ff" method="post" action="update">
            <table cellpadding="5">
                <tr>
                    <td class="field">类型：</td>
                    <td>
	                    <select id="type" class="easyui-combobox" name="networkinfo.type" style="width:175px;">
						    <option value="1" #if(networkinfo.type==1) selected #end>银行网点</option>
						    <option value="2" #if(networkinfo.type==2) selected #end>银行分行</option>
						    <option value="3" #if(networkinfo.type==3) selected #end>邮政揽投部</option>
						    <option value="4" #if(networkinfo.type==4) selected #end>分拨中心</option>
						</select>
					</td>
                    <td class="field">归属：</td>
                    <td>
	                    <select id="type" class="easyui-combobox" name="networkinfo.bank" style="width:175px;">
						    <option value="1" #if(networkinfo.bank==1) selected #end>邮政</option>
						    <option value="2" #if(networkinfo.bank==2) selected #end>交通银行</option>
						    <option value="3" #if(networkinfo.bank==3) selected #end>农业银行</option>
						    <option value="4" #if(networkinfo.bank==4) selected #end>建设银行</option>
						</select>
					</td>
                </tr>
                <tr>
                   
                    <td class="field">网点编号：</td>
                    <td>
                    	<input class="easyui-textbox" type="text" value="#(networkinfo.networkCode)" name="networkinfo.networkCode" data-options="required:true" readonly></input>
                    </td>
                    <td class="field">网点：</td>
                    <td>
                       <input class="easyui-textbox" type="text" value="#(networkinfo.network)" name="networkinfo.network" data-options="required:true"></input>
                    </td>
                </tr>
                <tr>
                    <td class="field">上级：</td>
                    <td><input id="superior" name="networkinfo.superiorID" value="" ></input></td>
                </tr>
                <tr>
                	<td class="field">状态：</td>
                	<td>
                	<select id="state" class="easyui-combobox" name="networkinfo.state" style="width:175px;">
						<option value="0" #if(networkinfo.state==0) selected #end>正常</option>
						<option value="1" #if(networkinfo.state==1) selected #end>停用</option>
					</select>
					</td>
                </tr>
               
            </table>
            <input class="easyui-textbox" type="hidden" value="#(networkinfo.id)" name="networkinfo.id" data-options="required:true" readonly></input>
        </form>
        <div style="text-align:center;padding:5px">
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save'" id="submit">保存</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" id="back" data-options="iconCls:'icon-undo'">返回列表</a>
        </div>
        </div>
</body>
</html>